package com.mycompany.project.client;

public class GameMechanics {
	GameData data = new GameData();
	
	
	public GameMechanics(){		
	}
	
	public int cardPicked(int i){
		return data.getData(i);	
	}
	
	public void resetGame(){
		data.shuffle();
		data.resetPick();
		data.setPlayer(9);
	}
	
	
	public void incPick(){
		data.setPick(data.getPick()+1);
	}
	
	public int getPick(){
		return data.getPick();
	}
	
	public void setPick(int pick){
		data.setPick(pick);
	}
	
	public void incPlayer(int i){
		if (i==9){
			data.incPlayer1();
		}else{
			data.incPlayer2();
		}
	}
	
	public int getPlayer(){
		return data.getPlayer();
	}
	
	public int getPlayer1(){
		return data.getPlayer1();
	}
	
	public int getPlayer2(){
		return data.getPlayer2();
	}
	
	public void swapPlayer(){
		data.resetPick();
		data.swapPlayer();
	}
	
	public String getImage(int i){
		return data.getImage(i);
	}
	
	public int getData(int i){
		return data.getData(i);
	}
	
	public void setData(int i, int j){
		data.setData(i, j);
	}

}
